import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '消息标题',
    align: "center",
    dataIndex: 'notTitlle'
  },
  {
    title: '消息名称',
    align: "center",
    dataIndex: 'notName'
  },
  // {
  //   title: '任务id',
  //   align: "center",
  //   dataIndex: 'taskId'
  // },
  {
    title: '任务名称',
    align: "center",
    dataIndex: 'taskName'
  },
  // {
  //   title: '处理人id',
  //   align: "center",
  //   dataIndex: 'userId'
  // },
  {
    title: '消息状态',
    align: "center",
    dataIndex: 'notStatus'
  },
  {
    title:'发布时间',
    align:'center',
    dataIndex:'pubTime'
  }
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '消息标题',
    field: 'notTitlle',
    component: 'Input',
  },
  {
    label: '消息名称',
    field: 'notName',
    component: 'Input',
  },
  {
    label: '任务id',
    field: 'taskId',
    component: 'Input',
  },
  {
    label: '任务名称',
    field: 'taskName',
    component: 'Input',
  },
  {
    label: '处理人id',
    field: 'userId',
    component: 'Input',
  },
  {
    label: '消息状态',
    field: 'notStatus',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
